home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / sendmail.cf / mailers.m4 < prev    next >
Encoding:
Text File  |  1987-08-13  |  5.8 KB  |  217 lines

  1.  
  2. ############################################################
  3. ############################################################
  4. #####
  5. #####        Local and Program Mailer specification
  6. #####
  7. ############################################################
  8. ############################################################
  9.  
  10. Mlocal,    S=11, R=12, F=rlsFDmn, A=mail -d $u,
  11. ifdef(`DEBUG',
  12. `    P=/toe/guest/dudek/bin/dmail',
  13. `    P=/bin/mail')
  14. Mprog, S=11, R=12, F=lsF, A=sh -c $u,
  15. ifdef(`DEBUG',
  16. `    P=/toe/guest/dudek/bin/dmail',
  17. `    P=/bin/sh')
  18. ifdef(`TTYMAILER',
  19. `Mtty,    P=/usr/local/bin/send, F=rlsn, S=11, R=12, A=send $u, M=5000'
  20. )
  21.  
  22. S10
  23.  
  24. S11
  25. R$+            $:$>10$1
  26. R@            MAILER-DAEMON        errors to mailer-daemon???
  27.  
  28. S12
  29. R$+            $:$>10$1
  30.  
  31. ############################################################
  32. ############################################################
  33. #####
  34. #####        LOCAL(!!) smtp (tcp/ip) mailer spec
  35. #####
  36. ############################################################
  37. ############################################################
  38.  
  39. Mether-mailer, S=14, R=15, F=RmsFDuX, E=\r\n,
  40. ifdef(`DEBUG',
  41. `    P=/toe/guest/dudek/bin/dmail, A=dmail $u',
  42. `    P=[IPC], A=IPC $h')
  43.  
  44. S13
  45. # convert to external now, so we can be sure there is an '@' for
  46. # crotchety SMTP's (like Wollongong)
  47. R$+            $:$>8$1
  48. ifdef(`SENDDOMAIN',
  49. `# Make sure our domain is present in the address for domain-less hosts
  50. R$*<@$->        $:$1<@$2.$D>',`')
  51.  
  52. S14
  53. R$+            $:$>13$1            externalize
  54.  
  55. R$*<@$+>        $@$1<@$2>            already ok
  56. R$+            $:$1<@$J>            tack on our name
  57. ifdef(`SENDDOMAIN',
  58. `R$+<@$->        $@$1<@$2.$D>            tack on our domain',
  59. `# sending within our own domain, so ok not to append our domain to hostname
  60. R$+<@$-.$D>        $@$1<@$2>            strip our domain name')
  61.  
  62. S15
  63. R$+            $:$>13$1            externalize
  64.  
  65. ############################################################
  66. ############################################################
  67. #####
  68. #####        DECNET Mailer specification
  69. #####
  70. ############################################################
  71. ############################################################
  72.  
  73. Mdecnet-mailer,    F=mnsFDR, S=16, R=16, A=decnetmail $f $x $h $u,
  74. ifdef(`DEBUG',
  75. `    P=/toe/guest/dudek/bin/dmail',
  76. `    P=/usr/lib/dnet/local/decnetmail')
  77.  
  78. S16
  79.  
  80. ############################################################
  81. ############################################################
  82. #####
  83. #####        UUCP Mailer specification
  84. #####
  85. ############################################################
  86. ############################################################
  87.  
  88. Muucp-mailer, S=20, R=21, M=150000, F=RsFDhuUm, A=uux - -a$f -gA $h!rmail ($u),
  89. ifdef(`DEBUG',
  90. `    P=/toe/guest/dudek/bin/dmail',
  91. `    P=/usr/bin/uux')
  92. Mtcpuucp, S=20, R=21, F=RmsFDuX,
  93. ifdef(`DEBUG',
  94. `    P=/toe/guest/dudek/bin/dmail, A=dmail $u',
  95. `    P=[IPC], A=IPC $h')
  96.  
  97. S19
  98. R$+            $:$>8$1            convert to external form
  99.  
  100. # Change internal non-UUCP routing to '!' syntax
  101. # First, change internal '@'s to '%'s
  102. R$+@$+<$+>        $1%$2<$3>        change smith@foo... to smith%foo
  103. # Change smith%foo%bar... to foo!smith%bar...
  104. R$+%$+%$+<$+>        $2!$1%$3<$4>        change smith%foo%bar... to !
  105. # Change foo!smith%bar... to bar!foo!smith...
  106. R$+%$+<$+>        $2!$1<$3>        change smith%foo... to !
  107.  
  108. R$+<@$+>        $@$2!$1            u@host.ARPA => host.ARPA!u
  109.  
  110. S20
  111. R$+            $:$>19$1        convert to old style
  112. R$=U!$+            $2            strip local name
  113. R$+            $:$U!$1            stick on our host name
  114.  
  115. S21
  116. R$+            $:$>19$1        convert to old style
  117.  
  118. ############################################################
  119. ############################################################
  120. #####
  121. #####        Arpanet TCP Mailer specification
  122. #####
  123. ############################################################
  124. ############################################################
  125.  
  126. Marpa-mailer, S=23, R=24, E=\r\n, F=RmsDFMuXL,
  127. ifdef(`DEBUG',
  128. `    P=/toe/guest/dudek/bin/dmail, A=dmail $u',
  129. `    P=[IPC], A=IPC $h')
  130.  
  131. S22
  132. # externalize now, so sender looks right if we stick on our own address
  133. R$+            $:$>8$1
  134.  
  135. # output our mail clients as harvard.harvard.edu
  136. R$+<@$=J>        $@$1<@$A>
  137.  
  138. ifdef(`ARPACLIENTS',
  139. `# output our ARPA clients as harvard.harvard.edu
  140. #  this means that users on these arpa clients MUST have mailboxes
  141. #  on this machine
  142. R$+<@$=K>        $@$1<@$A>'
  143. )
  144.  
  145. # output our mail relay as harvard.harvard.edu
  146. ifdef(`MAILRELAY',
  147. `R$+<@$R>        $@$1<@$A>'
  148. )
  149.  
  150. # output local hosts in user%host@harvard.harvard.edu syntax
  151. R$+@$+<@$->        $@$1@$2@$3<@$A>        broken local hosts
  152. R$+<@$->        $@$1%$2<@$A>        local hosts
  153.  
  154. # handle other external cases
  155. R$+<@$+>        $@$1<@$2>
  156.  
  157. # kludge for numeric internet spec
  158. R$+<@>            $@$1
  159.  
  160. # otherwise, just stick on our hostname
  161. R$+            $@$1<@$A>
  162.  
  163. S23
  164. R$+            $:$>22$1        externalize
  165.  
  166. # forward from domains other than ARPA domains
  167. R$+@$+<@$+.$~A>        $@$1@$2@$3.$4<@$A>    broken user@host.DOMAIN
  168. R$+<@$+.$~A>        $@$1%$2.$3<@$A>        user@host.DOMAIN
  169.  
  170. S24
  171. R$+            $:$>22$1        externalize
  172.  
  173. ############################################################
  174. ############################################################
  175. #####
  176. #####        BITNET Mailer specification
  177. #####
  178. ############################################################
  179. ############################################################
  180.  
  181.  
  182. Mbitnet-mailer, S=25, R=26, M=150000, F=RSsnFD, A=rscsmail $f $h $u,
  183. ifdef(`DEBUG',
  184. `    P=/toe/guest/dudek/bin/dmail',
  185. `    P=/usr/lib/rscs/rscs%mail')
  186. Mccnet-mailer, F=RSsnFD, S=26, R=27, M=100000, A=rscsmail $f$h$u cuvma mailer,
  187. ifdef(`DEBUG',
  188. `    P=/toe/guest/dudek/bin/dmail',
  189. `    P=/usr/lib/rscs/rscs%mail')
  190.  
  191. S25
  192. R$+            $:$>8$1                externalize
  193.  
  194. R$*<@$*.BITNET>        $@$1@$2.BITNET
  195. R$+<@$+>        $1%$2
  196. R$+            $:$1@$B.BITNET            stick on our name
  197.  
  198. S26
  199. R$+            $:$>8$1                externalize
  200.  
  201. ############################################################
  202. ############################################################
  203. #####
  204. #####        PATHALIAS Mailer specification
  205. #####
  206. ############################################################
  207. ############################################################
  208.  
  209. Mpath-mailer, S=28, R=28, F=fhume,
  210. ifdef(`DEBUG',
  211. `    P=/toe/guest/dudek/bin/pathsend,
  212.     A=pathsend -m /toe/guest/dudek/bin/dsendmail $u',
  213. `    P=/usr/lib/uucp/pathsend, A=pathsend $u')
  214.  
  215. S28
  216.  
  217.